Close
dtSearch Engine API for .NET Framework 2.x-4.x 2023.02
SearchFilter::SelectItemsBySearch Method

Set the selection state of all documents in an index that match search request.

public long SelectItemsBySearch( long whichIndex, ref String searchRequest, bool isSelected );
Parameters
Description
whichIndex
Integer identifying the index in this SearchFilter (obtained from AddIndex)
searchRequest
Search request to select documents
isSelected
Selection state to assign to documents

You can also use SearchJob.WantResultsAsFilter to create a SearchFilter from the results of a search. Using SearchJob.WantResultsAsFilter is more flexible than SelectItemsBySearch because you can use any of the properties of the SearchJob (search flags, FileConditions, etc.) rather than just a simple search request.